﻿ALTER TABLE [dbo].[Versions]
    ADD CONSTRAINT [FK_Version_ActivePackage] FOREIGN KEY ([ActivePackage_id]) REFERENCES [dbo].[Packages] ([Id]) ON DELETE NO ACTION ON UPDATE NO ACTION;

